#include <stdio.h>
#include <unistd.h>

int main()
{
  extern char **environ;

  printf("hello bit!\n");
  
  char* brgv[] = {"ls","-l","-a",NULL};
  execvp(brgv[0],brgv);
  //execlp("ls", "ls","-l", "-a", NULL);
  char *argv[] = {"./example", "-a", "-l", "-c", NULL};
    execve("./example", argv, NULL);//进行程序替换
  printf("hello world!\n");
}
